<?php
// +----------------------------------------------------------------------
// | 萤火商城系统 [ 致力于通过产品和服务，帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件，不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 萤火科技 <admin@yiovo.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\admin\controller;

use app\admin\model\Store as StoreModel;
use QL\QueryList;
/**
 * 小程序商城管理
 * Class Store
 * @package app\admin\controller
 */
class Common extends Controller
{

    /**
     * 获取公众号文章详情
     * @return array
     * @throws \think\db\exception\DbException
     */
    public function getWechatArticleDetail()
    {
        $rt = QueryList::Get("https://mp.weixin.qq.com/s/ZsNCoh7zwTinET4d_XqHxg");
        $richMediaContent = $rt->find('.rich_media_content');
        $img = $richMediaContent->find('img')->attr('src');
        halt($img);
    }
}
